package sealte.wdgf.system.listener;

import javax.servlet.ServletRequestEvent;
import javax.servlet.ServletRequestListener;
import javax.servlet.http.HttpServletRequest;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class RequestDetailStatisticsListener implements ServletRequestListener {
	
	private static Logger logger = LoggerFactory.getLogger(RequestDetailStatisticsListener.class);
	
	@Override
	public void requestDestroyed(ServletRequestEvent sre) {
		HttpServletRequest request = (HttpServletRequest)sre.getServletRequest();
		logger.info("发向"+request.getRequestURL()+"请求被销毁 ");
	}

	@Override
	public void requestInitialized(ServletRequestEvent sre) {
		HttpServletRequest request = (HttpServletRequest)sre.getServletRequest();
		logger.info("发向"+request.getRequestURL()+"请求被初始化 ");
	}

}
